package main

import (
	"crypto/md5"
	"encoding/hex"
	"fmt"
	"strconv"
	"time"
)

func main() {
	lengthstr := "00"
	start := time.Now()
	for i := 0; i < 10000000; i++ {
		h := md5.New()
		h.Write([]byte(strconv.Itoa(i)))
		md5str := hex.EncodeToString(h.Sum(nil))
		if md5str[:2] == lengthstr {
			fmt.Println(i, md5str)
			print(time.Since(start))
			break
		}
	}
}
